package com.cpr.shop.utils;

import cn.hutool.core.util.RandomUtil;


/**
 * @Author CPR
 * @Create 2025/1/23 23:10
 * @Version 1.0
 * @Description 生成六位验证码工具类
 */
public class VerifyCodeUtil {

    private static final int CODE_LENGTH = 6;

    /**
     * 生成6位数字验证码
     * @return
     */
    public static String generateAlphaNumericCode(){
        return RandomUtil.randomNumbers(CODE_LENGTH);
    }

}
